home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / mail / pine / ccmd / cmfil.cnf < prev    next >
Encoding:
Text File  |  1988-08-19  |  1.8 KB  |  55 lines

  1. _ Author: Howie Kaye
  2. _
  3. _ Columbia University Center for Computing Activities, July 1986.    
  4. _ Copyright (C) 1986, 1987, Trustees of Columbia University in the
  5. _ City of New York.  Permission is granted to any individual or
  6. _ institution to use, copy, or redistribute this software so long as
  7. _ it is not sold for profit, provided this copyright notice is
  8. _ retained.
  9. _
  10.  
  11. /* filename parse errors */
  12.  
  13. fnerror(NM, `Does not match filename')
  14. fnerror(AMB,`Ambiguous')
  15. fnerror(NWLD,`Cannot specify wildcards in nonwild parse')
  16. fnerror(INV,`Invalid combination of parse flags')
  17. fnerror(BAD,`Invalid file spec')
  18. fnerror(PMA,`Ambiguous')
  19.  
  20. /*
  21.  * FILBLK structure describes a data block to be passed to the file
  22.  * name parser
  23.  */
  24. typedef struct FILBLK {
  25.     char **pathv;        /* NULL terminated vector of dirs */
  26.     char *exceptionspec;    /* regexp of exceptions */
  27.     char **def_extension;   /* list of extensions to use */
  28. } filblk;
  29.  
  30. /*
  31.  * flags that can be present in a filename fdb 
  32.  */
  33.  
  34. fnflag(OLD)            /* existing file */
  35. fnflag(PO)            /* nonexisting file */
  36. fnflag(SDH)            /* don't give standard help */
  37. fnflag(DIR)            /* a directory */
  38. fnflag(RD)            /* a readable file */
  39. fnflag(WR)            /* a writable file */
  40. fnflag(EXEC)            /* an executable file */
  41. fnflag(HID)            /* a hidden file (MSDOS) */
  42. fnflag(SYS)            /* a system file (MSDOS) */
  43. #define FIL_ALL (FIL_DIR|FIL_RD|FIL_WR|FIL_EXEC|FIL_HID|FIL_SYS)
  44. fnflag(WLD)            /* wild cards allowed */
  45. fnflag(REGEXP)            /* regexp's allowed */
  46. fnflag(NOPTH)            /* only display filename in help */
  47. fnflag(NOEXT)            /* don't display extention in help */
  48. fnflag(TYPE)            /* display the type of file in help */
  49. fnflag(NODIR)            /* don't complete on directories */
  50. fnflag(RW)            /* read and write */
  51. typedef char **pvfil;        /* return a NULL terminated string vector */
  52.  
  53. pvtype(pvfil)_            /* FIL returns a list of file structures */
  54.  
  55.